// api/login.js
import axios from 'axios';

export const login = async (account, password) => {
    try {
        const response = await axios.post('/user/login', {
            account,
            password
        });

        return response.data;
    } catch (error) {
        return {
            status: 1001,
            msg: '账号不存在或密码错误'
        };
    }
};
